package problem.solution.case02;

import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author syg
 * @date 2021年12月1日10:18:13
 */
@Component
public class ASolution02 {

    @Resource
    ApplicationContext applicationContext;

    public void save01() {
        System.out.println("save01()=" + this.hashCode() + ",地址值=" + this);
        applicationContext.getBean(ASolution02.class).save02();
    }

    public void save02() {
        System.out.println("save02()=" + this.hashCode() + ",地址值=" + this);
    }
}
